'''
Created on Jan 7, 2012

@author: victor
'''

class SimpleStack(type([])):
    '''
    Stack interface for lists.
    '''

    def push(self, e):
        self.insert(0, e)
        return self
    
    def top(self):
        return self[0]
            
    def pop(self):
        del self[0]
        return self
